package tech.dx.springdb.service;

import tech.dx.springdb.entity.Parents;

import java.util.Optional;

/**
 * @ClassName ParentsService
 * @Description TODO
 * @Author daoxuan
 * @Date 2019/4/1 10:50
 * @Version 1.0
 */
public interface ParentsService {
    Optional<Parents> getById(long id);

    Parents add(Parents parents);

    Parents update(Parents parents);

    void del(long id);

    boolean isExitById(long id);
}
